package com.lfy.modules.common.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName user
 */
@TableName(value ="sys_user")
@Data
public class UserEntity implements Serializable {
    /**
     * 
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 邮箱
     */
    @TableField(value = "username")
    private String username;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 名字
     */
    @TableField(value = "name")
    private String name;

    /**
     * 角色
     */
    @TableField(value = "role")
    private Long role;

    /**
     * 是否冻结：0 未冻结 1 冻结
     */
    @TableField(value = "is_freeze")
    private Integer isFreeze;
    /**
     * uri
     */

    @TableField(value = "url")
    private String url;
    /**
     * 
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 
     */
    @TableField(value = "update_time")
    private Date updateTime;
    /**
     * 最后登录时间
     */
    @TableField(value = "last_login")
    private Date lastLogin;
    /**
     * 创建者id
     */
    @TableField(value = "create_by")
    private Long createBy;
    /**
     * 创建者ip
     */
    @TableField(value = "create_ip")
    private String createIp;
    /**
     * 创建者ip地址
     */
    @TableField(value = "create_ip_address")
    private String createIpAddress;



    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}